<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>用户登录功能</title>
	</head>
	<body>

		<script type="text/javascript">
			var account = prompt();
			var password = prompt();
			if (account == "" || password == "") {
				document.write("系统错误，请联系管理员");
			} else {
				if (account != "zhangsan") {
					document.write("用户名输入错误<br/>");
				}
				if (password != 66666) {
					document.write("密码输入错误<br/>");
				}
				if (account != "zhangsan" && password != 66666) {
					document.write("用户名和密码输入错误<br/>");
				}
				if (account == "zhangsan" && password == 66666) {
					document.write("登录成功<br/>");
				}
			}
		</script>
	</body>
</html>
